package com.uwo.house.service.serviceImpl;

import com.uwo.house.beans.Role;
import com.uwo.house.beans.User;
import com.uwo.house.dao.RoleMapper;
import com.uwo.house.dao.UserMapper;
import com.uwo.house.service.IRoleService;
import com.uwo.house.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yanhao on 2017/6/16.
 */
@Service
public class RoleService implements IRoleService {


    @Autowired
    private RoleMapper roleMapper;

    public List<Role> selectByUid(String uid) {
        return roleMapper.selectByUserid(uid);
    }

    public List<Role> select() {
        return null;
    }

    public int save(Role role) {
        return roleMapper.save(role);
    }

    public int modify(Role role) {
        return roleMapper.modify(role);
    }

    public int remvoe(Long id) {
        return roleMapper.remvoe(id);
    }
}
